home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 48
/
PC Gamer IT CD 48 1-2.iso
/
age2
/
AoE2demo.exe
/
1033
/
CABFILE
/
MSGAME.CAB
/
Data
/
gamedata.drs
/
Unnamed File 000010.bina
< prev
next >
Wrap
Text File
|
1999-10-01
|
14KB
|
675 lines
#load-if-defined GAME-SPEED-LOCKED
(defrule
(true)
=>
(set-goal rush-control 0)
(disable-self)
)
#else
(defrule
(true)
=>
(set-goal rush-control 0)
(disable-self)
)
#end-if
;*************************************************************
#load-if-defined POPULATION-CAP-25
(defconst civ-dark-rush 10)
(defconst civ-dark 11)
(defconst civ-feudal 12)
(defconst civ-castle 13)
(defconst pop-cap 25)
(defconst deathmatch-unit-max 13)
(defconst feudal-town-size 20)
(defconst castle-town-size 25)
(defconst imperial-town-size 25)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 19)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 19)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 21)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 23)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 23)
#end-if
(defconst five-percent-pop 1)
(defconst ten-percent-pop 3)
(defconst fifteen-percent-pop 4)
(defconst twenty-percent-pop 5)
(defconst thirty-percent-pop 8)
#end-if
;***************************
#load-if-defined POPULATION-CAP-50
(defconst civ-dark-rush 15)
(defconst civ-dark 20)
(defconst civ-feudal 25)
(defconst civ-castle 30)
(defconst pop-cap 50)
(defconst deathmatch-unit-max 25)
(defconst feudal-town-size 20)
(defconst castle-town-size 25)
(defconst imperial-town-size 30)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 35)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 35)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 40)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 45)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 45)
#end-if
(defconst five-percent-pop 2)
(defconst ten-percent-pop 5)
(defconst fifteen-percent-pop 7)
(defconst twenty-percent-pop 10)
(defconst thirty-percent-pop 15)
#end-if
;***************************
#load-if-defined POPULATION-CAP-75
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 35)
(defconst pop-cap 75)
(defconst deathmatch-unit-max 55)
(defconst feudal-town-size 20)
(defconst castle-town-size 30)
(defconst imperial-town-size 30)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 56)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 56)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 63)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 70)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 70)
#end-if
(defconst five-percent-pop 3)
(defconst ten-percent-pop 8)
(defconst fifteen-percent-pop 10)
(defconst twenty-percent-pop 15)
(defconst thirty-percent-pop 23)
#end-if
;***************************
#load-if-defined POPULATION-CAP-100
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 40)
(defconst pop-cap 100)
(defconst deathmatch-unit-max 70)
(defconst feudal-town-size 20)
(defconst castle-town-size 30)
(defconst imperial-town-size 35)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 70)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 70)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 80)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 90)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 90)
#end-if
(defconst five-percent-pop 5)
(defconst ten-percent-pop 10)
(defconst fifteen-percent-pop 15)
(defconst twenty-percent-pop 20)
(defconst thirty-percent-pop 30)
#end-if
;***************************
#load-if-defined POPULATION-CAP-125
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 45)
(defconst pop-cap 125)
(defconst deathmatch-unit-max 95)
(defconst feudal-town-size 20)
(defconst castle-town-size 35)
(defconst imperial-town-size 40)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 90)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 90)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 103)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 115)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 115)
#end-if
(defconst five-percent-pop 6)
(defconst ten-percent-pop 13)
(defconst fifteen-percent-pop 18)
(defconst twenty-percent-pop 25)
(defconst thirty-percent-pop 38)
#end-if
;***************************
#load-if-defined POPULATION-CAP-150
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 50)
(defconst pop-cap 150)
(defconst deathmatch-unit-max 120)
(defconst feudal-town-size 20)
(defconst castle-town-size 35)
(defconst imperial-town-size 40)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 110)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 110)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 125)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 140)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 140)
#end-if
(defconst five-percent-pop 7)
(defconst ten-percent-pop 15)
(defconst fifteen-percent-pop 22)
(defconst twenty-percent-pop 30)
(defconst thirty-percent-pop 45)
#end-if
;***************************
#load-if-defined POPULATION-CAP-175
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 55)
(defconst pop-cap 175)
(defconst deathmatch-unit-max 145)
(defconst feudal-town-size 20)
(defconst castle-town-size 35)
(defconst imperial-town-size 40)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 125)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 125)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 145)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 165)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 165)
#end-if
(defconst five-percent-pop 8)
(defconst ten-percent-pop 18)
(defconst fifteen-percent-pop 27)
(defconst twenty-percent-pop 35)
(defconst thirty-percent-pop 53)
#end-if
;***************************
#load-if-defined POPULATION-CAP-200
(defconst civ-dark-rush 20)
(defconst civ-dark 25)
(defconst civ-feudal 30)
(defconst civ-castle 60)
(defconst pop-cap 200)
(defconst deathmatch-unit-max 170)
(defconst feudal-town-size 20)
(defconst castle-town-size 35)
(defconst imperial-town-size 40)
#load-if-defined DIFFICULTY-EASIEST
(defconst unit-max 130)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst unit-max 130)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst unit-max 160)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst unit-max 190)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst unit-max 190)
#end-if
(defconst five-percent-pop 10)
(defconst ten-percent-pop 20)
(defconst fifteen-percent-pop 30)
(defconst twenty-percent-pop 40)
(defconst thirty-percent-pop 60)
#end-if
;*************************************************************
;*************************************************************
#load-if-defined TINY-MAP
(defconst town-center-count 2)
(defconst feudal-mill-count 1)
(defconst castle-mill-count 1)
(defconst imperial-mill-count 1)
(defconst mining-count 8)
#end-if
;**************************
#load-if-defined SMALL-MAP
(defconst town-center-count 2)
(defconst feudal-mill-count 1)
(defconst castle-mill-count 1)
(defconst imperial-mill-count 1)
(defconst mining-count 8)
#end-if
;**************************
#load-if-defined MEDIUM-MAP
(defconst town-center-count 2)
(defconst feudal-mill-count 1)
(defconst castle-mill-count 1)
(defconst imperial-mill-count 1)
(defconst mining-count 10)
#end-if
;**************************
#load-if-defined NORMAL-MAP
(defconst town-center-count 3)
(defconst feudal-mill-count 1)
(defconst castle-mill-count 1)
(defconst imperial-mill-count 2)
(defconst mining-count 11)
#end-if
;**************************
#load-if-defined LARGE-MAP
(defconst town-center-count 3)
(defconst feudal-mill-count 1)
(defconst castle-mill-count 2)
(defconst imperial-mill-count 3)
(defconst mining-count 12)
#end-if
;**************************
#load-if-defined GIANT-MAP
(defconst town-center-count 4)
(defconst feudal-mill-count 2)
(defconst castle-mill-count 3)
(defconst imperial-mill-count 4)
(defconst mining-count 15)
#end-if
;*************************************************************
(defrule
(not (map-type highland) )
=>
(set-strategic-number sn-minimum-water-body-size-for-dock 3000)
(disable-self)
)
;*************************************************************
#load-if-defined SCENARIO-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(set-goal 1 1)
(set-goal 2 0)
;(chat-to-all-using-id 22145)
;(chat-to-all-using-id 22146)
;"If this is an all-land or an island map, then please"
;"rework thy AI script accordingly."
(disable-self)
)
#end-if
;*******************************
#load-if-defined ARCHIPELAGO-MAP
(load "petersen fishboat")
(load "petersen warboat island")
(defrule
(true)
=>
(chat-local-to-self "detecting ocean map!")
(set-goal 1 10)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined ISLANDS-MAP
(load "petersen fishboat")
(load "petersen warboat island")
(defrule
(true)
=>
(chat-local-to-self "detecting ocean map!")
(set-goal 1 10)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined MIGRATION-MAP
(load "petersen fishboat")
(load "petersen warboat island")
(defrule
(true)
=>
(chat-local-to-self "detecting ocean map!")
(set-goal 1 10)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined TEAM-ISLANDS-MAP
(load "petersen fishboat")
(load "petersen warboat island")
(defrule
(true)
=>
(chat-local-to-self "detecting ocean map!")
(set-goal 1 10)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined BALTIC-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined COASTAL-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined CONTINENTAL-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined CRATER-LAKE-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined MEDITERRANEAN-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined RIVERS-MAP
(load "petersen fishboat")
(load "petersen warboat")
(defrule
(true)
=>
(chat-local-to-self "detecting water map!")
(set-goal 1 1)
(set-goal 2 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined ARABIA-MAP
(defrule
(true)
=>
(chat-local-to-self "detecting land map!")
(set-goal 1 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined BLACK-FOREST-MAP
(defrule
(true)
=>
(chat-local-to-self "detecting land map!")
(set-goal 1 0)
(disable-self)
)
(defrule
(difficulty <= hard)
(unit-type-count-total bombard-cannon < five-percent-pop)
(can-train-with-escrow bombard-cannon)
(not (goal upgrade-conflict NOTICE) )
=>
(release-escrow wood)
(release-escrow gold)
(train bombard-cannon)
(chat-local-to-self "bombard")
)
#end-if
;*******************************
#load-if-defined FORTRESS-MAP
(defrule
(true)
=>
(chat-local-to-self "detecting land map!")
(set-goal 1 0)
(disable-self)
)
#end-if
;*******************************
#load-if-defined GOLD-RUSH-MAP
(defrule
(true)
=>
(chat-local-to-self "detecting land map!")
(set-goal 1 0)
(disable-self)
)
(defrule
(current-age >= feudal-age)
(not (strategic-number sn-maximum-town-size == imperial-town-size) )
=>
(set-strategic-number sn-maximum-town-size imperial-town-size)
)
#end-if
;*******************************
#load-if-defined HIGHLAND-MAP
(defrule
(true)
=>
(chat-local-to-self "detecting land map!")
(set-goal 1 0)
(disable-self)
)
(defrule
(current-age == imperial-age)
(building-type-count-total dock == 0)
(wood-amount > 400)
(or
(cc-players-building-type-count any-enemy fortified-wall > 0)
(cc-players-building-type-count any-enemy stone-wall > 0)
)
(can-build dock)
=>
(build dock)
)
(defrule
(current-age == imperial-age)
(unit-type-count-total transport-ship == 0)
(or
(cc-players-building-type-count any-enemy fortified-wall > 0)
(cc-players-building-type-count any-enemy stone-wall > 0)
)
(can-train transport-ship)
=>
(train transport-ship)
)
#end-if
;*************************************************************
#load-if-defined REGICIDE
(defrule
(building-type-count-total castle == 0)
(not (goal castle-attempt YES) )
=>
(set-goal castle-attempt YES)
)
(defrule
(current-age < imperial-age)
(not (goal rush-control 4) )
=>
(set-goal rush-control 4)
)
(defrule ;200 in regicide
(goal military-parity SUPERIOR)
(can-spy)
=>
(spy)
(disable-self)
)
#end-if